package com.zdb.demo.design.pattern.structural.decorator.v2;

public abstract class AbstractBattercakeDecorator extends ABattercake {

    protected ABattercake aBattercake;

    public AbstractBattercakeDecorator(ABattercake aBattercake) {
        this.aBattercake = aBattercake;
    }

    public abstract void doSomething();

    @Override
    protected String getDesc() {
        return aBattercake.getDesc();
    }

    @Override
    protected int getCost() {
        return aBattercake.getCost();
    }
}
